from django.contrib import admin
from major.models import Major
# Register your models here.

@admin.register(Major)
class majorAdmin(admin.ModelAdmin):
    list_display_links = ['major_id','major']
    # 显示的列表信息
    list_display = ('major_id','major','create_time','modify_time')
    # 搜索的字段
    search_fields = ('major',)
